﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;
using System.IO;

namespace XbdSoft.ActiveX.WebSite
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var cmdArgs = @"  C:\Program Files\RobinSoft\小布叮软件\XbdSoft.ActiveX.dll";
            var regAsmExeFileFullName = @"regsvr32.exe";
            var processStartInfo = new ProcessStartInfo(regAsmExeFileFullName, cmdArgs) { Verb = "runas", UseShellExecute = true };
            processStartInfo.WindowStyle = ProcessWindowStyle.Maximized;
            Process.Start(processStartInfo);
        }
    }
}